const fs = require('fs');
fs.writeFileSync('./2-1.txt', "nihao");
fs.writeFileSync('./2-1-1.txt', 'wohao', function (e) {
    if (e) {
        console.log(e);
    }
    console.log('wancheng');
});